package com.thirteen.app.dto;

import com.thirteen.app.entity.Answer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 题目(Question)实体类
 *
 * @author 郑清林
 * @since 2021-09-06 10:29:41
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("问题信息类")
public class Question implements Serializable {
    private static final long serialVersionUID = -37542535398264551L;
    /**
     * 题目ID
     */

    @ApiModelProperty(value = "问题id", name = "questionId")
    private Integer questionId;
    /**
     * 题目类型
     */

    @ApiModelProperty(value = "问题类型", name = "questionType")
    private Integer questionType;


    /**
     * 题目内容
     */

    @ApiModelProperty(value = "问题内容", name = "content")
    private String content;
    /**
     * 创建时间
     */

    @ApiModelProperty(value = "创建时间", name = "createTime")
    private String createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "修改时间", name = "updateTime")
    private String updateTime;
    /**
     * 题目备注
     */

    @ApiModelProperty(value = "题目备注", name = "remark")
    private String remark;
    /**
     * 整题解析
     */

    @ApiModelProperty(value = "题目分析", name = "analysis")
    private String analysis;

    @ApiModelProperty(value = "答案数量", name = "answerCount")  //用于多选
    private int answerCount;


    //不是数据库表中字段，仅仅做多表查询显示时使用
    /*private String title;

    private int isRight;

    private String tag;*/

    @ApiModelProperty(value = "提交答案列表", name = "Answers")
    private List<Answer> answers;
    @ApiModelProperty(value = "题目类型名", name = "title")
    private String title;

}
